﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DTOFrameworks;
using FAQFrameworks;
using FooFun.DataElements.Dtos;

namespace FooFun.Web.Controls
{
    // 用户所提问的问题
    // todo: 分页的实现
    public class TopicOfUser : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            TopicManager topicManager = new TopicManager();

            Guid guid = FAQContext.Current.AccountId;

            IDataElement de = topicManager.ListTopicOfUser(
                guid, 20, FAQContext.Current.PageIndex);

            base.DataElement = de;
        }
    }
}
